<template>
	<div id="app">
		<router-view></router-view>
	</div>
</template>

<script>
	import {
		removeAllStorage
	} from "@/common.js"
	export default {
		watch: {
			'$route'() {
				console.log(this.$route)
				if (this.$route.name != 'HomePage') {
					if (!localStorage.role) {
						removeAllStorage()
						this.$router.push({
							name: 'Login'
						})
					}
				}
			}
		},
	}
</script>

<style lang="less">
	#app {
		position: fixed;
		width: 100%;
		height: 100%;
		overflow: auto;
		left: 0;
		top: 0;
		min-width: 1290px;
		min-height: 655px;
		overflow-x: hidden;
		overflow-y: hidden;
	}
</style>
